/**
 ******************************************************************************
 * @file    usbh_ioreq.h
 * @author  MCD Application Team
 * @version V1.0.0
 * @date    11/29/2010
 * @brief   Header file for usbh_ioreq.c
 ******************************************************************************
 * @copy
 *
 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
 * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
 * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
 * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
 * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
 *
 * <h2><center>&copy; COPYRIGHT 2010 STMicroelectronics</center></h2>
 */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __USBH_IOREQ_H
#define __USBH_IOREQ_H

/* Includes ------------------------------------------------------------------*/
#include "stm32f10x.h"
#include "usbh_core.h"
#include "usbh_def.h"


/** @addtogroup USBH_LIB
 * @{
 */

/** @addtogroup USBH_LIB_CORE
 * @{
 */

/** @defgroup USBH_IOREQ
 * @brief This file is the header file for usbh_ioreq.c
 * @{
 */


/** @defgroup USBH_IOREQ_Exported_Defines
 * @{
 */
#define USBH_SETUP_PKT_SIZE   8
#define USBH_EP0_EP_NUM       0
#define USBH_MAX_PACKET_SIZE  0x40
/**
 * @}
 */


/** @defgroup USBH_IOREQ_Exported_Types
 * @{
 */
/**
 * @}
 */


/** @defgroup USBH_IOREQ_Exported_Macros
 * @{
 */
/**
 * @}
 */

/** @defgroup USBH_IOREQ_Exported_Variables
 * @{
 */
/**
 * @}
 */

/** @defgroup USBH_IOREQ_Exported_FunctionsPrototype
 * @{
 */
USBH_Status USBH_CtlSendSetup( USB_OTG_CORE_HANDLE *pdev,
                               uint8_t *buff,
                               uint8_t hc_num);

USBH_Status USBH_CtlSendData( USB_OTG_CORE_HANDLE *pdev,
                              uint8_t *buff,
                              uint8_t length,
                              uint8_t hc_num);

USBH_Status USBH_CtlReceiveData( USB_OTG_CORE_HANDLE *pdev,
                                 uint8_t *buff,
                                 uint8_t length,
                                 uint8_t hc_num);

USBH_Status USBH_BulkReceiveData( USB_OTG_CORE_HANDLE *pdev,
                                  uint8_t *buff,
                                  uint8_t length,
                                  uint8_t hc_num);

USBH_Status USBH_BulkSendData( USB_OTG_CORE_HANDLE *pdev,
                               uint8_t *buff,
                               uint8_t length,
                               uint8_t hc_num);

USBH_Status USBH_InterruptReceiveData( USB_OTG_CORE_HANDLE *pdev,
                                       uint8_t             *buff,
                                       uint8_t length,
                                       uint8_t hc_num);

USBH_Status USBH_InterruptSendData( USB_OTG_CORE_HANDLE *pdev,
                                    uint8_t *buff,
                                    uint8_t length,
                                    uint8_t hc_num);

USBH_Status USBH_CtlReq(USB_OTG_CORE_HANDLE *pdev,
                        USB_Setup_TypeDef   *req,
                        uint8_t             *buff,
                        uint16_t length);
/**
 * @}
 */

#endif /* __USBH_IOREQ_H */

/**
 * @}
 */

/**
 * @}
 */

/**
 * @}
 */

/******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/


